Skip to content

Comments

docs: improve readability of API method signatures#2460

Merged
haakonvt merged 2 commits intomasterfrom
docs-linebreaks-in-signatures
Feb 16, 2026
Merged

docs: improve readability of API method signatures#2460
haakonvt merged 2 commits intomasterfrom
docs-linebreaks-in-signatures

Conversation

@MortGron
Copy link
Contributor

@MortGron MortGron commented Feb 2, 2026

Description

In the docs long object signatures are very hard to read. Splitting the arguments of long function signatures on separate lines will greatly help on readablility.

Example of current look:
image

Example of new look:
image

Checklist:

  • Tests added/updated.
  • Documentation updated. Documentation is generated from docstrings - these must be updated according to your change.
    If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.
  • The PR title follows the Conventional Commit spec.

@gemini-code-assist
Copy link
Contributor

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

@MortGron MortGron marked this pull request as ready for review February 2, 2026 20:56
@MortGron MortGron requested review from a team as code owners February 2, 2026 20:56
@MortGron
Copy link
Contributor Author

MortGron commented Feb 2, 2026

/gemini review

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request improves the readability of long object signatures in the documentation by upgrading Sphinx and configuring it to wrap long lines. The changes, including the new CSS for styling and the updated dependencies, are well-implemented and effectively address the issue. The code is clean and I have no concerns.

@haakonvt haakonvt changed the title docs: Split long object signatures in separate lines chore: Split long object signatures in separate lines Feb 2, 2026
@haakonvt
Copy link
Contributor

haakonvt commented Feb 2, 2026

That is a lot better (!!)

@haakonvt
Copy link
Contributor

I also found a way to go from:


Screenshot 2026-02-16 at 19 11 28

@haakonvt
Copy link
Contributor

...to:


Screenshot 2026-02-16 at 19 12 19

@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.84%. Comparing base (09ae7b4) to head (36cb1f3).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2460      +/-   ##
==========================================
- Coverage   48.87%   48.84%   -0.04%     
==========================================
  Files         191      191              
  Lines       26156    26156              
==========================================
- Hits        12785    12777       -8     
- Misses      13371    13379       +8     

see 6 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@haakonvt haakonvt force-pushed the docs-linebreaks-in-signatures branch from 8e068f0 to 96fe1ad Compare February 16, 2026 18:34
@haakonvt haakonvt changed the title chore: Split long object signatures in separate lines docs: improve readability of API method signatures Feb 16, 2026
@haakonvt haakonvt force-pushed the docs-linebreaks-in-signatures branch from 96fe1ad to 36cb1f3 Compare February 16, 2026 18:47
@haakonvt haakonvt self-assigned this Feb 16, 2026
@haakonvt haakonvt added waiting-for-risk-review Waiting for a member of the risk review team to take an action risk-review-ongoing Risk review is in progress labels Feb 16, 2026
Copy link
Contributor

@haakonvt haakonvt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦄

Copy link
Contributor

@erlendvollset erlendvollset left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🦄

@haakonvt haakonvt added this pull request to the merge queue Feb 16, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 16, 2026
Co-authored-by: Håkon V. Treider <haakonvt@gmail.com>
@haakonvt haakonvt removed this pull request from the merge queue due to a manual request Feb 16, 2026
@haakonvt haakonvt added this pull request to the merge queue Feb 16, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 16, 2026
@haakonvt haakonvt added waiting-for-team Waiting for the submitter or reviewer of the PR to take an action and removed waiting-for-risk-review Waiting for a member of the risk review team to take an action labels Feb 16, 2026
@haakonvt haakonvt added this pull request to the merge queue Feb 16, 2026
github-merge-queue bot pushed a commit that referenced this pull request Feb 16, 2026
Co-authored-by: Håkon V. Treider <haakonvt@gmail.com>
@haakonvt haakonvt removed this pull request from the merge queue due to a manual request Feb 16, 2026
@haakonvt haakonvt added this pull request to the merge queue Feb 16, 2026
Merged via the queue into master with commit f9cf998 Feb 16, 2026
18 checks passed
@haakonvt haakonvt deleted the docs-linebreaks-in-signatures branch February 16, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk-review-ongoing Risk review is in progress waiting-for-team Waiting for the submitter or reviewer of the PR to take an action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants